package com.feicheng.persistence.model;

import com.feicheng.persistence.entity.Category;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class CategoryPojo extends Category implements Serializable {

    private String imageUrl;

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() {
        return this.imageUrl;
    }

    public CategoryPojo(Category category) {
        this.setCategoryId(category.getCategoryId());
        this.setName(category.getName());
        this.setLevel(category.getLevel());
        this.setPId(category.getPId());
        this.setStatu(category.getStatu());
        this.setImgId(category.getImgId());
    }

    private List<Category> subCategorys = new ArrayList<Category>();

    public List<Category> getSubCategory() {
        return this.subCategorys;
    }
}
